﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Domain.Entity.bs;
using Domain.Entity;
using Domain.Entity.zct;
using AutoMapper;

namespace Application.SlotServic
{
    public interface  ISlotService 
    {
        //分页查询库位信息
        Task<(List<Slot> List, int TotalCount)> GetSlots(
           int pageSize,
           int currentPage,
           string? code,
           string? name,
           int? status,
           string? userName,
           int? warehouseId = null);

        //添加库位表
        Task<int> AddSlot(List<AddSlotDto> addSlotDto);

        //添加库位表
        Task<int> AddSlot(AddSlotDto addSlotDto);


        //查询仓库主管信息
        Task<List<User>> GetAllUsers();


        //修改库位
        Task<int> UpdateSlot(UpdateSlotDto updateSlotDto);

        //删除库位信息
        Task<int> DeleteSlot(int id);

        //根据仓库id查询相对应库位
        Task<List<Slot>> GetSlotsByWhid(int whid);
    }
}
